import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * @author : Bruce
 * @date: 2024/7/16 - 07 - 16 - 12:00
 * @Description: PACKAGE_NAME
 * @version: 1.0
 */
public class Test1 {
    public static void main(String[] args) {
        try {
            Scanner scanner = new Scanner(System.in);
            int n1 = scanner.nextInt();
            int n2 = scanner.nextInt();
            System.out.println(n1 / n2);
            //1/0 ArithmeticException
            //1/a InputMismatchException
        } catch (ArithmeticException  | InputMismatchException e) {
//            e.printStackTrace();  //显示异常的堆栈信息
            throw e;
        } finally {
            System.out.println("最后一步  先抛执行 finally 再抛异常 ");
        }
    }
}
